package com.lxl.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxl.chat.bean.Users;
import com.lxl.chat.bean.vo.FriendRequestVO;
import com.lxl.chat.bean.vo.MyFriendsVO;
import com.lxl.chat.entity.UsersDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UsersDOMapper extends BaseMapper<Users> {
    int deleteByPrimaryKey(String id);

    int insert(UsersDO record);

    int insertSelective(UsersDO record);

    UsersDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UsersDO record);

    int updateByPrimaryKey(UsersDO record);

    List<FriendRequestVO> queryFriendRequestList(@Param("acceptUserId") String acceptUserId);

    List<MyFriendsVO> queryMyFriends(@Param("userId") String userId);

    int batchUpdateMsgSigned(List list);
}